﻿/**
 * Create in 2012-4-4.
 */
package kit4j.common.task.event;

import kit4j.common.event.AbstractConcurrentEventFirer;

/**
 * 任务进度变化事件同步发送者类型。
 * 
 * @author MiniKnife
 * 
 */
public class ConcurrentTaskProgressRateChangeEventFirer extends
		AbstractConcurrentEventFirer<TaskProgressRateChangeListener, TaskProgressRateChangeEvent> {

	/**
	 * @see kit4j.common.event.AbstractEventFirer#fireEventToListener(java.lang.Object, java.lang.Object)
	 */
	@Override
	protected void fireEventToListener(TaskProgressRateChangeEvent evt, TaskProgressRateChangeListener listener) {
		listener.taskProgressRateChanged(evt);
	}

	/**
	 * @see kit4j.common.event.EventFirer#getListeners()
	 */
	@Override
	public TaskProgressRateChangeListener[] getListeners() {
		return listenerSet.toArray(new TaskProgressRateChangeListener[listenerSet.size()]);
	}

}
